module.exports = {
  /*
  ** Headers of the page
  */
  head: {
    title: 'ColinWoo-Blog',
    meta: [
      { charset: 'utf-8' },
      { name: 'viewport', content: 'width=device-width, initial-scale=1' },
      { hid: 'description', name: 'description', content: '生活很无趣,做一个有趣的人很难,遇到志同道合一起有趣的人更难.生活不易,一起加油!!  ---- Editor by ColinWoo' },
      { hid: 'keywords', name: 'keywords', content: 'ColinWoo,logs book,share,个人记事本,工作记录册,备忘录.博客,blog' }
    ],
    link: [
      { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
    ],
    script:[
    ]
  },
  css:[
    '~assets/css/normailze.css',
    'assets/css/main.css'
  ],
  plugins:[
    // '@/plugins/highligh',
  ],
  /*
  ** Customize the progress bar color
  */
  loading: { color: '#3B8070' },
  /*
  ** Build configuration
  */
  build: {
    /*
    ** Run ESLint on save
    */
   router: {
    extendRoutes (routes, resolve) {
      // 扩展路由，让 nuxt 支持静态页面请求，如 https://www.xxx.cn/index.html
      routes.push({
        name: 'index.html',
        path: '/index.html',
        component: resolve(__dirname, 'pages/index.vue'),
        });
      },
    },
    extend (config, { isDev, isClient }) {
      if (isDev && isClient) {
        config.module.rules.push({
          enforce: 'pre',
          test: /\.(js|vue)$/,
          loader: 'eslint-loader',
          exclude: /(node_modules)/
        })
      }
    }
  }
}

